package com.xrjsj.stage.interceptor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author xurong
 * @since 2018/10/1 下午3:23
 */
@SpringBootConfiguration
public class InterceptorConfigAdapter implements WebMvcConfigurer {

    @Autowired
    private CommonInterceptorConfig interceptorConfig;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(interceptorConfig)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/joker/login/**","/poetry/login/**","/test/**");
    }
}
